package io;

import java.io.Serializable;
import java.util.Arrays;

public class Student implements Serializable {
    private String name;
    private int age;
    private String gender;
    private  String[]otherlnfo;

    public Student(){
    }
    public  Student(String name,int age,String gender,String[]otherlnfo){
        this.name=name;
        this.age=age;
        this.gender=gender;
        this.otherlnfo=otherlnfo;
    }
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public String getGender() {
        return gender;
    }
    public String[] getOtherlnfo() {
        return otherlnfo;
    }
    public void setName(String name) {
        this.name = name;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
    public void setOtherlnfo(String[] otherlnfo) {
        this.otherlnfo = otherlnfo;
    }
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", otherlnfo=" + Arrays.toString(otherlnfo) +
                '}';
    }
}

